import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@fortawesome/fontawesome-free/css/all.css'

// 使用Element UI
Vue.use(ElementUI)

// 修改全局样式
const globalStyle = document.createElement('style')
globalStyle.textContent = `
  body {
    margin: 0;
    padding: 0;
    background-color: #f5f7fa;
    min-height: 100vh;
  }
`
document.head.appendChild(globalStyle)

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
